feat(plugin-activity-guard): add activity entry guards - #728
Conversation
🦋 Changeset detectedLatest commit: efd2711 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (9)
Disabled knowledge base sources:
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds ChangesActivity guard plugin
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant StackflowRuntime
participant activityGuardPlugin
participant resolveGuards
StackflowRuntime->>activityGuardPlugin: invoke navigation hook
activityGuardPlugin->>resolveGuards: resolve activity target
resolveGuards-->>activityGuardPlugin: return target and blocked status
activityGuardPlugin-->>StackflowRuntime: continue with resolved action
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
stackflow-docs | efd2711 | Commit Preview URL | Jul 21 2026, 09:01 AM |
Add typed entry policies that can allow an Activity or replace its target with a guarded redirect while preserving push, replace, and initial-entry semantics. Include ordered combinators, package documentation, executable contract coverage, and release metadata. Co-authored-by: Codex <noreply@openai.com>
05fd86f to
a956c7e
Compare
Add a plugin allowing programmers to restrict activity entrances via predicates called 'guards'.